home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / DisplayP.h.z / DisplayP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  5.2 KB  |  185 lines

  1. /*
  2.  * DisplayP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: DisplayP.h /main/cde1_maint/2 1995/08/18 18:57:06 drk $ */
  36. /*
  37. *  (c) Copyright 1989, 1990  DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. /*
  41. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  42. /*
  43. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  44. #ifndef _XmDisplayP_h
  45. #define _XmDisplayP_h
  46.  
  47. #include <Xm/DesktopP.h>
  48. #include <Xm/VendorSEP.h>
  49. #include <Xm/DropSMgr.h>
  50. #include <Xm/Display.h>
  51. #include <Xm/ScreenP.h>
  52.  
  53. /* A little incest */
  54. #include <Xm/DragCP.h>
  55. #include <Xm/VirtKeysP.h>
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. #ifdef _NO_PROTO
  62. typedef Widget (*XmDisplayGetDisplayProc)();
  63. #else
  64. typedef Widget (*XmDisplayGetDisplayProc)
  65.     (Display *);
  66. #endif
  67.  
  68.  
  69. typedef struct {
  70.     XmDisplayGetDisplayProc GetDisplay;
  71.     XtPointer               extension;
  72. } XmDisplayClassPart;
  73.  
  74. /* 
  75.  * we make it a appShell subclass so it can have it's own instance
  76.  * hierarchy
  77.  */
  78. typedef struct _XmDisplayClassRec{
  79.     CoreClassPart              core_class;
  80.     CompositeClassPart         composite_class;
  81.     ShellClassPart          shell_class;
  82.     WMShellClassPart           wm_shell_class;
  83.     VendorShellClassPart     vendor_shell_class;
  84.     TopLevelShellClassPart     top_level_shell_class;
  85.     ApplicationShellClassPart     application_shell_class;
  86.     XmDisplayClassPart        display_class;
  87. }XmDisplayClassRec;
  88.  
  89. typedef struct _XmModalDataRec{
  90.     Widget                      wid;
  91.     XmVendorShellExtObject    ve;
  92.     XmVendorShellExtObject    grabber;
  93.     Boolean            exclusive;
  94.     Boolean            springLoaded;
  95. }XmModalDataRec, *XmModalData;
  96.  
  97. typedef struct {
  98.     unsigned char        dragInitiatorProtocolStyle;
  99.     unsigned char        dragReceiverProtocolStyle;
  100.  
  101.     unsigned char        userGrabbed; /* flag for menu vs dnd */
  102.  
  103.     WidgetClass            dragContextClass;
  104.     WidgetClass            dropTransferClass;
  105.     WidgetClass            dropSiteManagerClass;
  106.     XmDragContext        activeDC;
  107.     XmDropSiteManagerObject    dsm;
  108.     Time            lastDragTime;
  109.     Window            proxyWindow;
  110.  
  111.     XmModalData            modals;
  112.     Cardinal            numModals;
  113.     Cardinal            maxModals;
  114.     XtPointer            xmim_info;
  115.  
  116.     String            bindingsString;
  117.     XmKeyBindingRec        *bindings;
  118.     XKeyEvent            *lastKeyEvent;
  119.     unsigned char        keycode_tag[XmKEYCODE_TAG_SIZE];
  120.  
  121.     int                shellCount;
  122.     XtPointer            displayInfo;    /* extension */
  123. } XmDisplayPart, *XmDisplayPartPtr;
  124.  
  125. typedef struct _XmDisplayInfo {
  126.     /* so much for information hiding */
  127.     Cursor        SashCursor;        /* Sash.c */
  128.     Widget        destinationWidget;    /* Dest.c */
  129.     Cursor        TearOffCursor;        /* TearOff.c */
  130.     XtPointer    UniqueStamp;        /* UniqueEvnt.c */
  131. } XmDisplayInfo;
  132.  
  133. typedef struct _XmDisplayRec{
  134.     CorePart         core;
  135.     CompositePart     composite;
  136.     ShellPart         shell;
  137.     WMShellPart        wm;
  138.     VendorShellPart    vendor;
  139.     TopLevelShellPart     topLevel;
  140.     ApplicationShellPart application;
  141.     XmDisplayPart    display;
  142. }XmDisplayRec;
  143.  
  144. externalref XmDisplayClassRec     xmDisplayClassRec;
  145.  
  146. externalref String _Xm_MOTIF_DRAG_AND_DROP_MESSAGE ;
  147.  
  148.  
  149. /********    Private Function Declarations    ********/
  150. #ifdef _NO_PROTO
  151.  
  152. extern XmDropSiteManagerObject _XmGetDropSiteManagerObject() ;
  153. extern unsigned char _XmGetDragProtocolStyle() ;
  154. extern unsigned char _XmGetDragTrackingMode() ;
  155. extern Widget _XmGetDragContextFromHandle() ;
  156. extern WidgetClass _XmGetXmDisplayClass() ;
  157. extern WidgetClass _XmSetXmDisplayClass() ;
  158.  
  159. #else
  160.  
  161. extern XmDropSiteManagerObject _XmGetDropSiteManagerObject( 
  162.                         XmDisplay xmDisplay) ;
  163. extern unsigned char _XmGetDragProtocolStyle( 
  164.                         Widget w) ;
  165. extern unsigned char _XmGetDragTrackingMode( 
  166.                         Widget w) ;
  167. extern Widget _XmGetDragContextFromHandle( 
  168.                         Widget w,
  169.                         Atom iccHandle) ;
  170. extern WidgetClass _XmGetXmDisplayClass( void ) ;
  171. extern WidgetClass _XmSetXmDisplayClass( 
  172.                         WidgetClass wc) ;
  173.  
  174. #endif /* _NO_PROTO */
  175. /********    End Private Function Declarations    ********/
  176.  
  177.  
  178. #ifdef __cplusplus
  179. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  180. #endif
  181.  
  182. #endif /* _XmDisplayP_h */
  183. /* DON'T ADD STUFF AFTER THIS #endif */
  184.  
  185.